﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Aioms.Common
{
    public class XunJianPlan
    {
        /// <summary>
        /// 路线ID
        /// </summary>
        public long Id { get; set; }

        public long Eid { get; set; }

        public string Name { get; set; }

        public int IsDel { get; set; }

        public List<XunJianDian> XunJianDians { get; set; } = new();
    }

    public class XunJianDian {

        /// <summary>
        /// 巡检点ID
        /// </summary>
        public long Id { get; set; }

        public long Eid { get; set; }
        public string Name { get; set; }

        public string Position { get; set; }

        public int Range { get; set; }

        public int IsDel { get; set; }

        public List<XunJianDianXunJianXiang> XunJianXiangs { get; set; } = new();

        public List<XunJianDevice> XunJianDevices { get; set; } = new();
    }

    public class XunJianDianXunJianXiang
    {
        /// <summary>
        /// 巡检项ID
        /// </summary>
        public long Id { get; set; }

        public long Eid { get; set; }
        public string Procedure { get; set; }
        public string Record { get; set; }
        public string Option { get; set; }
        public string ImageUrl { get; set; }
        public string VideoUrl { get; set; }
    }

    public class XunJianDevice
    {
        public long Id { get; set; }

        public long Eid { get; set; }
        public string Name { get; set; }

        public string Number { get; set; }

        public string Specification { get; set; }

        public long AeId { get; set; }
        public string AeName { get; set; }

        public long DvtId { get; set; }
        public string DvtName { get; set; }

        public string Position { get; set; }
        public int IsDel { get; set; }

        public List<DeviceXunJianStandard> DeviceXunJianStandards { get; set; } = new();
    }

    public class DeviceXunJianStandard {
        /// <summary>
        /// 巡检标准ID
        /// </summary>
        public long Id { get; set; }

        public long Eid { get; set; }
        public string Procedure { get; set; }
        public string Record { get; set; }
        public string Option { get; set; }
        public string ImageUrl { get; set; }
        public string VideoUrl { get; set; }
    }
}
